package com.pansky.crm.service;

import com.pansky.crm.common.mybatisplus.SuperService;
import com.pansky.crm.entity.Privilege;
import com.pansky.crm.entity.RolePrivilege;
import com.pansky.crm.entity.bo.RolePrivilegeDTO;

import java.util.List;

/**
 * @author ：zhouzhiyong
 * @date ：Created in 2021/2/25 11:33
 * @description：RolePrivilege服务
 */
public interface RolePrivilegeService extends SuperService<RolePrivilege> {
    List<Privilege> listPrivilegeByRoleId(Long roleId);

    /**
     * 更新角色权限
     * @param updateDTO
     * @return
     */
    Boolean updateRolePrivilege(RolePrivilegeDTO updateDTO);
}
